package com.ctshk.rpc.train.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 检索req
 * </p>
 *
 */
@Data
@ApiModel(value="TrainAppQueryReq对象", description="首页检索req")
public class TrainAppQueryReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上车站id")
    private Long boardingStationId;

    @ApiModelProperty(value = "上车站名称")
    private String boardingStationName;

    @ApiModelProperty(value = "下车站点id")
    private Long alightingStationId;

    @ApiModelProperty(value = "下车站点名称")
    private String alightingStationName;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "请选择出发日期")
    @ApiModelProperty(value = "出发日期")
    private LocalDate departureDate;

    @ApiModelProperty(value = "出发时间筛选")
    private List<TrainDepartureTimeAppQueryReq> departureTimeAppQueryReqs;

    @ApiModelProperty(value = "車次類型筛选(2:G/C高鐵城際 3:D動車 4:普通列車)")
    private List<Long> typeIds;

    @ApiModelProperty(value = "是否高速列车")
    private Integer isExpressTrain = 0;

}
